package com.sherry.uitils;

import java.net.URI;
import java.net.URISyntaxException;

/**
 * Created by swl on 2021/5/26.
 */
public class UrlBuilder {

    public static URI geturl(String uri){
        String host = ConfigUtil.getHostConfig();
        URI url = null;
        try {
            url = new URI(host+uri);
        } catch (URISyntaxException e) {
            e.printStackTrace();
        }
        return url;
    }
}
